package com.core.zyyz.pcmc.domain;

import com.core.common.annotation.Excel;
import com.core.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 渠道对象 pcmc_channel
 *
 * @author core
 * @date 2024-10-24
 */
public class PcmcChannel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 渠道ID */
    private String channelId;

    /** 渠道密码 */
    @Excel(name = "渠道密码")
    private String channelSecret;

    /** token过期时间，单位秒 */
    @Excel(name = "token过期时间，单位秒")
    private Long tokenExpire;

    /** 渠道类型，inner,outer */
    @Excel(name = "渠道类型，inner,outer")
    private String channelType;

    /** 说明 */
    @Excel(name = "说明")
    private String description;

    /** IP白名单 */
    @Excel(name = "IP白名单")
    private String ipWhitelist;

    public void setChannelId(String channelId)
    {
        this.channelId = channelId;
    }

    public String getChannelId()
    {
        return channelId;
    }
    public void setChannelSecret(String channelSecret)
    {
        this.channelSecret = channelSecret;
    }

    public String getChannelSecret()
    {
        return channelSecret;
    }
    public void setTokenExpire(Long tokenExpire)
    {
        this.tokenExpire = tokenExpire;
    }

    public Long getTokenExpire()
    {
        return tokenExpire;
    }
    public void setChannelType(String channelType)
    {
        this.channelType = channelType;
    }

    public String getChannelType()
    {
        return channelType;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setIpWhitelist(String ipWhitelist)
    {
        this.ipWhitelist = ipWhitelist;
    }

    public String getIpWhitelist()
    {
        return ipWhitelist;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("channelId", getChannelId())
                .append("channelSecret", getChannelSecret())
                .append("tokenExpire", getTokenExpire())
                .append("channelType", getChannelType())
                .append("description", getDescription())
                .append("ipWhitelist", getIpWhitelist())
                .toString();
    }
}
